from openai import OpenAI

client = OpenAI(api_key="sk-xcmzbaqhoollmlsqfzzezfjxronicmuzcebtyiplkxsegrfn", base_url="https://api.siliconflow.cn/v1")
response = client.chat.completions.create(
    model='deepseek-ai/DeepSeek-V2.5',
    messages=[
        {'role': 'user',
         'content': "MySQL 中的数据排序是怎么实现的？"}
    ],
    stream=True
)

for chunk in response:
    print(chunk.choices[0].delta.content, end='')
